package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_StockAllocateItem", catalog="Id")
public class TccStockAllocateItem extends BaseEntity<TccStockAllocateItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="StockControlIdByOld", nameJava="stockControlIdByOld", typeDataBase="bigint")
	private Long stockControlIdByOld;
	@YsField(nameDataBase="StockControlIdByNew", nameJava="stockControlIdByNew", typeDataBase="bigint")
	private Long stockControlIdByNew;
	@YsField(nameDataBase="SubCode", nameJava="subCode", typeDataBase="varchar")
	private String subCode;
	@YsField(nameDataBase="ProductNum", nameJava="productNum", typeDataBase="int")
	private Integer productNum;
	@YsField(nameDataBase="ProductNumAll", nameJava="productNumAll", typeDataBase="int")
	private Integer productNumAll;
	@YsField(nameDataBase="AllocateNum", nameJava="allocateNum", typeDataBase="int")
	private Integer allocateNum;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="CompanyVid", nameJava="companyVid", typeDataBase="varchar")
	private String companyVid;
	@YsField(nameDataBase="VgsbmByOld", nameJava="vgsbmByOld", typeDataBase="varchar")
	private String vgsbmByOld;
	@YsField(nameDataBase="VgsShByOld", nameJava="vgsShByOld", typeDataBase="varchar")
	private String vgsShByOld;
	@YsField(nameDataBase="RkBid", nameJava="rkBid", typeDataBase="varchar")
	private String rkBid;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="DrksjByOld", nameJava="drksjByOld", typeDataBase="datetime")
	private Date drksjByOld;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="DrksjByNew", nameJava="drksjByNew", typeDataBase="datetime")
	private Date drksjByNew;
	@YsField(nameDataBase="Kcdays", nameJava="kcdays", typeDataBase="varchar")
	private String kcdays;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccStockAllocateItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccStockAllocateItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getStockControlIdByOld() {
		return stockControlIdByOld;
	}
	public TccStockAllocateItem setStockControlIdByOld(Long stockControlIdByOld) {
		this.stockControlIdByOld = stockControlIdByOld;
		return this;
	}
	public Long getStockControlIdByNew() {
		return stockControlIdByNew;
	}
	public TccStockAllocateItem setStockControlIdByNew(Long stockControlIdByNew) {
		this.stockControlIdByNew = stockControlIdByNew;
		return this;
	}
	public String getSubCode() {
		return subCode;
	}
	public TccStockAllocateItem setSubCode(String subCode) {
		this.subCode = subCode;
		return this;
	}
	public Integer getProductNum() {
		return productNum;
	}
	public TccStockAllocateItem setProductNum(Integer productNum) {
		this.productNum = productNum;
		return this;
	}
	public Integer getProductNumAll() {
		return productNumAll;
	}
	public TccStockAllocateItem setProductNumAll(Integer productNumAll) {
		this.productNumAll = productNumAll;
		return this;
	}
	public Integer getAllocateNum() {
		return allocateNum;
	}
	public TccStockAllocateItem setAllocateNum(Integer allocateNum) {
		this.allocateNum = allocateNum;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TccStockAllocateItem setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public String getCompanyVid() {
		return companyVid;
	}
	public TccStockAllocateItem setCompanyVid(String companyVid) {
		this.companyVid = companyVid;
		return this;
	}
	public String getVgsbmByOld() {
		return vgsbmByOld;
	}
	public TccStockAllocateItem setVgsbmByOld(String vgsbmByOld) {
		this.vgsbmByOld = vgsbmByOld;
		return this;
	}
	public String getVgsShByOld() {
		return vgsShByOld;
	}
	public TccStockAllocateItem setVgsShByOld(String vgsShByOld) {
		this.vgsShByOld = vgsShByOld;
		return this;
	}
	public String getRkBid() {
		return rkBid;
	}
	public TccStockAllocateItem setRkBid(String rkBid) {
		this.rkBid = rkBid;
		return this;
	}
	public Date getDrksjByOld() {
		return drksjByOld;
	}
	public TccStockAllocateItem setDrksjByOld(Date drksjByOld) {
		this.drksjByOld = drksjByOld;
		return this;
	}
	public Date getDrksjByNew() {
		return drksjByNew;
	}
	public TccStockAllocateItem setDrksjByNew(Date drksjByNew) {
		this.drksjByNew = drksjByNew;
		return this;
	}
	public String getKcdays() {
		return kcdays;
	}
	public TccStockAllocateItem setKcdays(String kcdays) {
		this.kcdays = kcdays;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccStockAllocateItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccStockAllocateItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccStockAllocateItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccStockAllocateItem tccStockAllocateItem(
		String pbid,
		Long stockControlIdByOld,
		Long stockControlIdByNew,
		String subCode,
		Integer productNum,
		Integer productNumAll,
		Integer allocateNum,
		String chw,
		String companyVid,
		String vgsbmByOld,
		String vgsShByOld,
		String rkBid,
		Date drksjByOld,
		Date drksjByNew,
		String kcdays,
		Integer status
			) {
		TccStockAllocateItem entity = new TccStockAllocateItem();
		entity.setPbid(pbid);
		entity.setStockControlIdByOld(stockControlIdByOld);
		entity.setStockControlIdByNew(stockControlIdByNew);
		entity.setSubCode(subCode);
		entity.setProductNum(productNum);
		entity.setProductNumAll(productNumAll);
		entity.setAllocateNum(allocateNum);
		entity.setChw(chw);
		entity.setCompanyVid(companyVid);
		entity.setVgsbmByOld(vgsbmByOld);
		entity.setVgsShByOld(vgsShByOld);
		entity.setRkBid(rkBid);
		entity.setDrksjByOld(drksjByOld);
		entity.setDrksjByNew(drksjByNew);
		entity.setKcdays(kcdays);
		entity.setStatus(status);
		return entity;
	}
}